module.exports = {
  //关闭eslint
  lintOnSave: false,
  //关闭打包的map文件
  productionSourceMap: false,

  //代理跨域
 /* devServer: {
    proxy: 'http://39.98.123.211'
  },*/
  devServer: {
    proxy: {
      '/api': {
        target: 'http://gmall-h5-api.atguigu.cn',
        ws: true,
        changeOrigin: true
      },

    }
  },


  //配置路径别名
  configureWebpack: {
    resolve: {
      alias: {
        'assets': '@/assets',
        'components': '@/components',
        'views': '@/views',
        'network': '@/network',
        'common': '@/common'
      },
    }
  },

};
